<?php

include'JSON.php';
class KonwerterJSON implements Konwerter{
	public function konwertujDane(array $dane)
	{
		// create a new instance of Services_JSON
		$json = new Services_JSON();
		 
		// convert a complexe value to JSON notation, and send it to the browser
		$result = $json->encode($dane);
		//output in JSON
		echo $result;	
	}
}
?>